# include <stdio.h>
int main()
{
	int n,i;
	for(i=0;i<n;i++){
	int m,n; 
	int a[m],b[n]={0};
	
	scanf("%d",a[m]);

	for(m=0,n=0;m<10;m++)
	if(a[m]!=0)
	b[n++]=a[m];
	
		printf("%d",b[n++]);
	}
	
	return 0;
}
